﻿using System;
using System.Collections.Generic;
using WebApiAttributeDemo.DAL.Entities;

namespace WebApiAttributeDemo.DAL.Repository
{
    public interface IBlogRepository
    {
        IEnumerable<BlogPost> GetAll();
        BlogPost GetById(long id);
        IEnumerable<BlogPost> GetByDate(DateTime date);

        IEnumerable<BlogPost> GetByAuthor(string author); 
        void Delete(long id);
        void Add(BlogPost post);
        void Update(BlogPost post);
    }
}
